package com.example.lib_common.utils

import com.example.lib_log.Logger
import com.example.lib_log.LoggerLevel
import com.example.lib_log.LoggerStrategy

class LoggerUtils {
    companion object{
        private val logger=Logger.Builder()
            .setLoggerStrategy(LoggerStrategy.LOGCAT)//策略者模式
            .setTAG("[club::]")
            .setLevel(LoggerLevel.Debug)
            .setSaveUrl("")
            .setDebug(true)
            .build()

        fun d(tag:String,log:String){
            logger.d(tag,log)
        }
        fun v(tag:String,log:String){
            logger.v(tag,log)
        }
        fun i(tag:String,log:String){
            logger.i(tag,log)
        }
        fun w(tag:String,log:String){
            logger.w(tag,log)
        }
        fun e(tag:String,log:String){
            logger.e(tag,log)
        }

    }
}